package vip.xiaonuo.modular.business.param.BiIndexData;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description
 * @Author cy
 * @Date 2022/8/4 15:01
 * @Version 1.0
 */
@ApiModel("指标数据查询参数类")
@Data
public class QueryParam {

    /**
     * 指标类型
     */
    @ApiModelProperty(value = "指标类型", required = true)
    @NotNull(message = "指标类型")
    private Long typeId;

    private String typeName;

    private List<Long> typeIds;
    private Long currentTargetId;

    /**
     * 指标级别 指标类型为4时，需要传入网格所属省市区名称
     */
    @ApiModelProperty(value = "指标级别", required = true,notes = "指标类型为4时，需要传入网格所属省市区名称")
    @NotNull(message = "指标级别")
    private Integer level;

    /**
     * 省会
     */
    @ApiModelProperty(value = "省会")
    private String provName;

    /**
     * 城市
     */
    @ApiModelProperty(value = "城市")
    private String cityName;

    /**
     * 地区
     */
    @ApiModelProperty(value = "地区")
    private String countryName;

    /**
     * 所属网格
     */
    @ApiModelProperty(value = "所属网格")
    private String grid;

    /**
     * 时间级别 year,month,day,season,week
     */
    @ApiModelProperty(value = "时间级别")
    @NotNull(message = "时间级别")
    private String timeLevel;

    /**
     * 年份
     */
    @ApiModelProperty(value = "年份")
    private Integer year;

    /**
     * 月份
     */
    @ApiModelProperty(value = "月份")
    private Integer month;

    /**
     * 日
     */
    @ApiModelProperty(value = "日")
    private Integer day;

    /**
     * 季节
     */
    @ApiModelProperty(value = "季节")
    private Integer season;

    /**
     * 星期
     */
    @ApiModelProperty(value = "星期")
    private Integer week;

    public String  lng           ; //String comment '经度',
    public String  lat           ; //String comment '纬度',
    private String lng1;
    private String lng2;
    private String lat1;
    private String lat2;
    private Double scale;
    private boolean exactLngLat;
    private List<String> customPolygons;
}
